Introduction
Welcome to the Jogg.ai API! This document will guide you on how to create a avatar video by calling our API.Core Concept: Asynchronous Processing Flow
Before you begin, it is crucial to understand that creating an avatar video is an asynchronous operation. This means you will not receive the final video file immediately after calling the API. The entire process is as follows:- Submit Task: Your application sends a
POST
request to Jogg.ai, containing the video script, selected avatar, and all other necessary information. - Receive Confirmation: The Jogg.ai server validates your request. If it’s valid, it will immediately return a
200 Accepted
response, which includes a uniqueproject_id
. This ID is your credential for tracking this task. - Background Processing: Your video creation task enters our processing queue. The server will render the video in the background based on the current workload. This process can take anywhere from a few seconds to several minutes.
- Retrieve Result: Once the video processing is complete, you can obtain the result in one of two ways:
- Webhook (Recommended): We will send a
POST
notification to your pre-configuredwebhook_url
, containing the video status and the final video playback address. This is the most efficient and reliable method. - Polling (Alternative): You can use the
project_id
to periodically call theGET /project/{project_id}
endpoint to check the task status.
- Webhook (Recommended): We will send a
Quick Start
Create Talking Avatar Video
First, create your Instant Avatar on the Create Instant Avatar page. Then, use thePlease refer to the Create Talking Avatar Videos for more details and refer to the next section for obtaining the avatar_id and voice_id.My Instant Avatars
List endpoint to obtain your Avatar ID, and theMy Voices List
endpoint to retrieve your Voice for video creation.
Here is a code example
Request Example:Get Avatars and Voices List
If you want to change the Avatar or voice, you can obtain theavatar_id
from My Instant Avatars List and the voice_id
from My Voices List to make replacements.